import HeaderLayout from '../components/HeaderLayout/HeaderLayout.vue'
import FooterLayout from '../components/FooterLayout/FooterLayout.vue'
import Main from '../components/Main/index.vue'
import Search from '../components/Search/Search.vue'


//vue插件开发有两种模式，对象和方法
const plugin = {
    //在对象中必须包含一个方法，这个方法的名字叫install，这个方法会入参一个VueContrunctor
    install: function(Vue){
        Vue.component("HeaderLayout",HeaderLayout)
        Vue.component("FooterLayout",FooterLayout)
        Vue.component("MainLayout",Main)
        Vue.component("SearCompot",Search)
    }
}
export default plugin